package com.hospital.doctor.controller;

import com.hospital.common.result.R;
import com.hospital.doctor.domain.Medication;
import com.hospital.doctor.service.EltMedicationInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：zhuzhujiang
 * @Description:
 * @name：EltMedicationInfoController
 * @Date：2024/10/21 0:16
 */
@RestController
@RequestMapping("/medication")
public class EltMedicationInfoController {

    @Autowired
    private EltMedicationInfoService eltMedicationInfoService;

    @GetMapping("/getMedicationList")
    public R<List<Medication>> getMedicationList(){

        return R.success(eltMedicationInfoService.list());

    }


}
